package simulator.queue;

import java.util.Comparator;

public class ItemComparator implements Comparator<Item> {

	@Override
	public int compare(Item item1, Item item2) 
	{
		int value = 0;
		if(item2.getCreationTime() < item1.getCreationTime())
			value = 1;
		if(item1.getCreationTime() < item2.getCreationTime())
			value = -1;

		return value;
	}

}
